#!/usr/bin/env python

def _(s): return s

import sys, wx

class StartServer:
    def __init__(self, mainWin):
        from operations import ApacheCtl
        if ApacheCtl.start() == 0:
            mainWin.SetStatusText(_("Success"))
            UserMessage.say(_("Successfully started Apache"),
                           _("Apache started"),
                           wx.ICON_INFORMATION)
        else:
            mainWin.SetStatusText(_("Apache Error"))
            UserMessage.say(_("Apache failed to start!"),
                           _("Error"), wx.ICON_ERROR)